#ifndef __ls7a_h_
#define __ls7a_h_

#define DMWIN_MASK 0x9000000000000000

#define LS7A_I8042_DATA    0x1fe00060UL
#define LS7A_I8042_COMMAND 0x1fe00064UL
#define LS7A_I8042_STATUS  0x1fe00064UL

// 中断号
#define UART0_IRQ 2
#define KEYBOARD_IRQ 3
#define MOUSE_IRQ 4
#define DISK_IRQ 5
    
// LS7A 寄存器
#define LS7A_PCH_REG_BASE       (0x10000000UL | DMWIN_MASK)
#define LS7A_INT_MASK_REG       LS7A_PCH_REG_BASE + 0x020
#define LS7A_INT_EDGE_REG       LS7A_PCH_REG_BASE + 0x060
#define LS7A_INT_CLEAR_REG      LS7A_PCH_REG_BASE + 0x080
#define LS7A_INT_HTMSI_VEC_REG  LS7A_PCH_REG_BASE + 0x200
#define LS7A_INT_STATUS_REG     LS7A_PCH_REG_BASE + 0x3a0
#define LS7A_INT_POL_REG        LS7A_PCH_REG_BASE + 0x3e0

#endif

